package com.stellar.circle.basic.service.impl;

import com.stellar.circle.basic.dao.SCommentSensitiveLogDao;
import com.stellar.circle.basic.entity.SCommentSensitiveLog;
import com.stellar.circle.basic.service.SCommentSensitiveLogService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 评论敏感词记录表(SCommentSensitiveLog)服务实现
 *
 * @author Jqchan
 * @since 2025-05-19 14:52:51
 */
@Service
public class SCommentSensitiveLogServiceImpl implements SCommentSensitiveLogService {
    
    @Resource
    private SCommentSensitiveLogDao sCommentSensitiveLogDao;

    @Override
    public SCommentSensitiveLog queryById(Long id) {
        return sCommentSensitiveLogDao.queryById(id);
    }

    @Override
    public SCommentSensitiveLog queryByCondition(SCommentSensitiveLog condition) {
        return sCommentSensitiveLogDao.queryByCondition(condition);
    }

    @Override
    public List<SCommentSensitiveLog> queryAllByCondition(SCommentSensitiveLog condition) {
        return sCommentSensitiveLogDao.queryAllByCondition(condition);
    }

    @Override
    public List<SCommentSensitiveLog> page(SCommentSensitiveLog condition, int page, int pageSize) {
        return sCommentSensitiveLogDao.page(condition, page, pageSize);
    }

    @Override
    public int insert(SCommentSensitiveLog entity) {
        return sCommentSensitiveLogDao.insert(entity);
    }

    @Override
    public int update(SCommentSensitiveLog entity) {
        return sCommentSensitiveLogDao.update(entity);
    }

    @Override
    public int deleteById(Long id) {
        return sCommentSensitiveLogDao.deleteById(id);
    }

    @Override
    public Long count(SCommentSensitiveLog condition) {
        return sCommentSensitiveLogDao.count(condition);
    }

    @Override
    public Long countRiskComments(LocalDateTime beginTime, LocalDateTime endTime, String sourceType, Integer isAnonymous) {
        return sCommentSensitiveLogDao.countRiskComments(beginTime, endTime, sourceType, isAnonymous);
    }
}
